//
//  Levels.m
//  LanguagesTeach
//
//  Created by Niel Santos on 12/16/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import "LevelsController.h"


@implementation LevelsController

@synthesize subjectPath;
@synthesize table_view;

// Implement viewDidLoad to do additional setup after loading the view.
- (void)viewDidLoad {
	
	languageTableViewDelegator = [[LanguageTableViewDelegator alloc] init: subjectPath];
	languageTableViewDelegator.navigationController = self.navigationController;
	languageTableViewDataSource = [[LanguageTableViewDataSource alloc] init: subjectPath];
	
	
	table_view.delegate = languageTableViewDelegator;
	table_view.dataSource = languageTableViewDataSource;
	self.title = NSLocalizedString(@"title_levels_controller", @"");
    [super viewDidLoad];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
	return YES;
}

- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc. that aren't in use.
}

- (void)viewDidUnload {
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}


- (void)dealloc {
	[languageTableViewDelegator release];
	[languageTableViewDataSource release];
	[subjectPath release];
    [super dealloc];
}


@end
